package org.xhy.beanchameleon.core;

import org.xhy.beanchameleon.pipeline.ChainModel;

import java.util.Map;

/**
 * @description: 流水线中的上下文(也就是责任链上下文数据,我就想这样叫)
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @Author: Xhy
 * @CreateTime: 2024-03-25 19:50
 */
public class ChameleonSrcCode<T> implements ChainModel {

    private final String javaSrc;

    private Chameleon chameleon;

    private Map<String,byte[]> classMap;

    public Chameleon getChameleon() {
        return chameleon;
    }

    public void setChameleon(Chameleon chameleon) {
        this.chameleon = chameleon;
    }

    public Map<String, byte[]> getClassMap() {
        return classMap;
    }

    public void setClassMap(Map<String, byte[]> classMap) {
        this.classMap = classMap;
    }

    public ChameleonSrcCode(String javaSrc){
        this.javaSrc = javaSrc;
    }

    public String getJavaSrc() {
        return javaSrc;
    }


}
